<%- include('common/header') %>
<%- include('common/nav')%>
<h1 class="text-center color"><a href="/main"><%= title %></a></h1>
<p class="text-center">Welcome to <%= title %></p>
<div class="horizontal-centrol padding-20">
    <form id="updateNoteForm">
        <div class="form-group hide">
            <label class="control-label" for="_id">id</label>
            <input type="text" class="form-control" id="_id" name="_id" value="<%= note_info._id%>"/>
        </div>
        <div class="form-group">
            <label class="control-label" for="title">标题</label>
            <input type="text" class="form-control" id="title" name="title" value="<%= note_info.title%>"/>
        </div>
        <div class="form-group">
            <label class="control-label" for="content">内容</label>
            <textarea rows="12" id="content" name="content" class="form-control"><%= note_info.content %></textarea>
        </div>
        <div class="form-group">
            <button type="button" class="btn btn-primary" onclick="send_note('updateNoteForm','/note/update/<%= user %>')">发表</button>
        </div>
    </form>
</div>
<script type="text/javascript" src="/javascripts/note.js"></script>
<%- include('common/footer') %>